package com.hiyee.api.controller.admin;

import com.hiyee.grace.result.ResponseJsonResult;
import com.hiyee.pojo.bo.UpdateFriendLinkBO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang3.StringUtils;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;

@Api(value = "友情链接控制器", tags = {"友情链接控制器"})
@RequestMapping("friendlink")
public interface FriendLinkControllerApi {

    @ApiOperation(value = "保存友情链接", notes = "保存友情链接")
    @PostMapping("/update")
    public ResponseJsonResult update(@RequestBody @Valid UpdateFriendLinkBO bo, BindingResult bindingResult);

    @ApiOperation(value = "友情链接列表", notes = "友情链接列表")
    @GetMapping("/list")
    public ResponseJsonResult update();

    @ApiOperation(value = "删除友情链接", notes = "删除友情链接")
    @PostMapping("/delete")
    public ResponseJsonResult delete(@RequestParam String link_id);
}
